<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>单笔转账</title>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="小镖人、社区、网络货运">
    <meta name="description" content="小镖人、社区、网络货运">
    <link rel="stylesheet" href="../../../../xbr_layui_extend/layui-v2.6.8/css/layui.css">
    <style>
        .layui-layout-admin {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 50px;
        }

        .layui-layout-admin .layui-footer {
            padding: 10px 0;
            text-align: center;
            left: 0
        }

        .layui-form-label {
            width: 120px;
        }

        .tooltip {
            position: relative;
            display: inline-block;
            cursor: pointer;
        }

        input {
            max-width: 300px;
        }

    </style>
</head>
<body>
<div class="layui-fluid" style="padding: 15px;">
    <form class="layui-form" action="" lay-filter="form-initPlat" id="userForm" method="post"
              style="margin-bottom: 80px">
            <div class="layui-form-item">
                <p>提示：民声银行单笔转账</p>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">转账金额</label>
                <div class="layui-input-block">
                    <input type="number" id="amount" name="amount" lay-verify="required" placeholder="请输入转账金额"
                           class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">付款人账号</label>
                <div class="layui-input-block">
                    <input type="text" id="acntNo" name="acntNo" lay-verify="required" placeholder="请输入付款人账号"
                           class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">付款人名称</label>
                <div class="layui-input-block">
                    <input id="acntName" name="acntName" lay-verify="required" placeholder="请输入付款人名称" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款人账号</label>
                <div class="layui-input-block">
                    <input id="acntToNo" name="acntToNo" lay-verify="required" placeholder="请输入收款人账号" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款人名称</label>
                <div class="layui-input-block">
                    <input id="acntToName" name="acntToName" lay-verify="required" placeholder="请输入收款人名称"
                           class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">是否跨行</label>
                <div class="layui-input-block">
                    <input type="radio" name="externBank" value="0" title="是">
                    <input type="radio" name="externBank" value="1" title="否" checked>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">汇路</label>
                <div class="layui-input-inline">
                    <select style="width: 280px" name="localFlag" lay-verify="required">
                        <option value=""></option>
                        <option value="0">本行转账</option>
                        <option value="5">跨行转账-小额支付系统</option>
                        <option value="3">跨行转账-大额支付系统</option>
                        <option value="5">跨行转账-网银互联</option>
                        <option value="9"> 跨行转账-自动计算汇路</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="margin-top: 7px">
                    <div class="tooltip" title="必须提供完整的行名行号；
                    小额支付系统网银互联最多支持100万元，7*24小时运行。
                    大额支付系统金额无上限，工作时间：工作日的前一日 20:30至工作日当日的17:15
                    自动计算汇路，如联行号字段上送收款行总行行号，则无法使用大额、小额汇路，仅会尝
                    试使用网银互联汇路；联行号上送款行支行行号，则会在大额、小额、
                    网银互 联三个汇路中选中当前时间、金额可达的最优 汇路。">
                        <i  class="layui-icon">&#xe60b;</i>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款人账户类型</label>
                <div class="layui-input-block">
                    <input type="radio" name="rcvCustType" value="1" title="对公">
                    <input type="radio" name="rcvCustType" value="2" title="对私" checked>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款人开户行行号</label>
                <div class="layui-input-inline">
                    <input style="width: 280px" id="bankCode" name="bankCode" placeholder="请输入收款人开户行行号" class="layui-input"/>
                </div>
                <div class="layui-input-inline" style="margin-top: 7px">
                    <div class="tooltip" title="跨行必填">
                        <i style="margin-left: 105px" class="layui-icon">&#xe60b;</i>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款人开户行名称</label>
                <div class="layui-input-inline">
                    <input style="width: 280px" id="bankName" name="bankName"
                           placeholder="请输入收款人开户行名称" class="layui-input"/>
                </div>
                <div class="layui-input-inline" style="margin-top: 7px">
                    <div class="tooltip" title="大/小额、网银互联汇路此项必填">
                        <i style="margin-left: 105px" class="layui-icon">&#xe60b;</i>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款人开户行地址</label>
                <div class="layui-input-inline">
                    <input style="width: 280px" id="bankAddr" name="bankAddr" placeholder="请输入收款人开户行地址" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收款行地区编号</label>
                <div class="layui-input-inline">
                    <input style="width: 280px" id="areaCode" name="areaCode" placeholder="请输入收款行地区编号" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用途代码</label>
                <div class="layui-input-inline">
                    <select style="width: 280px" name="localFlag" lay-verify="required">
                        <option value="">请选择</option>
                        <option value="394">其他合法收入——运费</option>
                        <option value="375">其他合法收入——资金退还</option>
                        <option value="311">差旅费</option>
                        <option value="312">办公费</option>
                        <option value="313">水电费</option>
                        <option value="314">通讯费</option>
                        <option value="315">交通费</option>
                        <option value="316">报刊费</option>
                        <option value="317">餐费</option>
                        <option value="318">医药费</option>
                        <option value="319">会议费</option>
                        <option value="341">个人投资本金和收益</option>
                        <option value="342">个人债券产权转让收益</option>
                        <option value="343">个人贷款转存</option>
                        <option value="344">证券结算金期货保证金</option>
                        <option value="345">个人继承、赠予款项</option>
                        <option value="346">保险理赔、保费退还</option>
                        <option value="347">个人纳税退还</option>
                        <option value="348">农副矿产品销售收入</option>
                        <option value="349">银联资金清算</option>
                        <option value="374">其他合法收入——律师费</option>
                        <option value="376">其他合法收入——拆迁补偿款</option>
                        <option value="377">其他合法收入——垫付资金</option>
                        <option value="378">其他合法收入——柜台销售结算款</option>
                        <option value="379">其他合法收入——网上交易款</option>
                        <option value="380">其他合法收入——小件商品销售收入</option>
                        <option value="381">制片费</option>
                        <option value="383">个人合法收入--奖助学金</option>
                        <option value="384">个人合法收入--退学费</option>
                        <option value="385">报销费用--日常报销费用</option>
                        <option value="386">报销费用--日常经营费用</option>
                        <option value="388">案件款</option>
                        <option value="389">投资赎回款</option>
                        <option value="390">投资退款</option>
                        <option value="391">投资分红</option>
                        <option value="392">其他合法收入——工程款</option>
                        <option value="393">其他合法收入——租赁费</option>
                        <option value="395">个人合法收入--公积金</option>
                        <option value="396">代收货款</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="margin-top: 7px">
                    <div class="tooltip" title="跨行公转私必填">
                        <i  class="layui-icon">&#xe60b;</i>
                    </div>
                </div>
            </div>
    <!--提交按钮-->
    <div class="layui-form-item layui-layout-admin">
        <div class="layui-input-block">
            <div class="layui-footer">
                <button id="text9" class="layui-btn" lay-submit="" lay-filter="post-initPlat"><i class="layui-icon">&#xe605;</i>立即提交
                </button>
            </div>
        </div>
    </div>
    </form>
</div>


<script src="../../../../xbr_layui_extend/layui-v2.6.8/layui.js"></script>
<script>
    layui.extend({
        admin: '/platform/xbr_layui_extend/admin' //集成路径
    }).use(["admin", 'form'], function () {
        const $ = layui.$, form = layui.form, admin = layui.admin, element = layui.element;
        element.render('icon');
        //上传完毕 提交表单
        // form.render(null, 'form-initPlat');
        form.on('submit(post-initPlat)', function (data) {
            layer.prompt({
                title: '请输入密码',
                formType: 1, // 输入密码的形式
            }, function (value, index, elem) {
                layer.close(index);
                admin.req({
                    url: admin.baseUrl() + "/user/account/verifySafePassword",
                    data: {safePassword:value},
                    type: 'post',
                    isPlatform: true,
                    done: function (res) {
                        data.field.passCode=res.data
                        admin.req({
                            url: admin.baseUrl() + "/capital/trade/getTransferXfer",
                            data: data.field,
                            type: 'post',
                            isPlatform: true,
                            done: function (res) {
                                //保存成功
                                layer.msg( '提交成功，等待第三方处理', {icon: 1, time: 1000
                                }, function () {
                                    const index = parent.layer.getFrameIndex(window.name); //获取窗口索引
                                    parent.location.reload();
                                    parent.layer.close(index);
                                });
                            }
                        });
                    }
                });
            });

            return false;
        });

    });
</script>
</body>
</html>